
<form id="form_edit"><input type="hidden" name="id" value="{[$smarty.request.id]}" />
<input type="hidden" name="customer" value="" />
<table>
	<tr>
		<td width="20%" align="right">流水号：</td>
		<td width="30%">#{[$result.id]}({[$result.oper_t]})</td>
		<td width="20%" align="right">状态：</td>
		<td width="30%">{[$result.status_t]}</td>
	</tr>
	<tr>
		<td align="right">员工：</td>
		<td><input type="text" name="emp" id="emp" value="{[$result.emp]}:{[$result.emp_t]}" size="16" title="{[$t.emp_|emp:'员工']}"></td>
		<td align="right">收入明细：</td>
		<td><input type="text" name="in_item" id="in_item" value="{[$result.in_item]}" size="12"></td>
	</tr>
	<tr>
		<td align="right">类型：</td>
		<td><select name='type' id='type'>
			{[html_options options=$type_option selected=$result.type]}
		</select></td>
		<td align="right">到帐日期：</td>
		<td><input type="text" name="date" id="date" value="{[$result.date|date_format:'%Y-%m-%d']}" size="12"></td>
	</tr>	
	<tr>
		<td align="right">事由：</td>
		<td colspan="3"><textarea rows="3" name="name" id="name" cols="55">{[$result.name]}</textarea></td>
	</tr>
	<tr>
		<td align="right">到帐金额：</td>
		<td colspan="3"><input type="text" name="income" id="income" value="{[$result.income]}" size="12"> <select name='currency' id='currency'>
			{[html_options options=$currency_option selected=$result.currency]}
		</select> <label id="label_income"></label></td>
	</tr>
	<tr>
		<td align="right">人民币：</td>
		<td><input type="text" name="rmb" id="rmb" value="{[$result.rmb]}" size="12"></td>
		<td align="right">汇率：</td>
		<td><input type="text" name="rate" id="rate" value="{[$result.rate]}" size="12"></td>		
	</tr>
	<tr>
		<td align="right">成本：</td>
		<td><input type="text" name="cost" id="cost" value="{[$result.cost]}" size="12"> <select name='cost_t' id='cost_t'>
			{[html_options options=$cost_option selected=-]}
		</select></td>
		<td align="right">提成比例：</td>
		<td><input type="text" name="percent" id="percent" value="{[$result.percent]}" size="6"> <select name='percent_t' id='percent_t'>
			{[html_options options=$percent_option selected=$result.percent]}
		</select></td>	
	</tr>	
	<tr>
		<td align="right">利润：</td>
		<td><input type="text" name="profit" id="profit" value="{[$result.profit]}" size="12"></td>
		<td align="right">实际提成：</td>
		<td><input type="text" name="amount" id="amount" value="{[$result.amount]}" size="6"> <select name='type2' id='type2'>
			{[html_options options=$type2_option selected=$result.type2]}
		</select></td>	
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="3" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>

<script type="text/javascript" src="js/finance/commission/add.js?r={[$smarty.now]}"></script>
